<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mdsproject/mds_logistictaskdetail/Mds_LogisticTaskDetail.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mdsproject/mds_logistictaskdetail/Mds_LogisticTaskDetail.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Mds_LogisticTaskDetail",
        setup() {
            const table = ref({
                key: "LogisticTaskDetailId",
                footer: "Foots",
                cnName: "物流任务明细",
                name: "mds_logistictaskdetail/Mds_LogisticTaskDetail",
                newTabEdit: false,
                url: "/Mds_LogisticTaskDetail/",
                sortName: "LogisticTaskDetailId"
            });
            const editFormFields = ref({"LogisticTaskId":"","LogisticLineId":"","BeginSiteId":"","EndSiteId":"","MachineId":"","BeginSiteAlias":"","EndSiteAlias":"","TaskStatus":"","BeginTime":"","EndTime":"","Remarks":""});
            const editFormOptions = ref([[{"title":"物流任务","field":"LogisticTaskId","disabled":true,"type":"number"},
                               {"dataKey":"MDS_LogisticLine","data":[],"title":"物流路线","field":"LogisticLineId","disabled":true,"type":"select"}],
                              [{"dataKey":"MDS_LogisticSite","data":[],"title":"起始物流点位","field":"BeginSiteId","disabled":true,"type":"select"},
                               {"dataKey":"MDS_LogisticSite","data":[],"title":"目标物流点位","field":"EndSiteId","disabled":true,"type":"select"}],
                              [{"dataKey":"BASE_Machine_Lgt","data":[],"title":"执行设备","field":"MachineId","disabled":true,"type":"select"},
                               {"title":"起始点位别名","field":"BeginSiteAlias","disabled":true,"type":"number"}],
                              [{"title":"目标点位别名","field":"EndSiteAlias","disabled":true,"type":"number"},
                               {"dataKey":"MDS_TaskStatus","data":[],"title":"任务状态","field":"TaskStatus","disabled":true,"type":"select"}],
                              [{"title":"开始时间","field":"BeginTime"},
                               {"title":"结束时间","field":"EndTime"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"LogisticTaskDetailId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"LogisticTaskId",title:"物流任务",type:"bigint",width:110,hidden:true,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"LogisticLineId",title:"物流路线",type:"bigint",bind:{ key:"MDS_LogisticLine",data:[]},width:150,hidden:true,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"BeginSiteId",title:"起始物流点位",type:"bigint",bind:{ key:"MDS_LogisticSite",data:[]},width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"EndSiteId",title:"目标物流点位",type:"bigint",bind:{ key:"MDS_LogisticSite",data:[]},width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"MachineId",title:"执行设备",type:"bigint",bind:{ key:"BASE_Machine_Lgt",data:[]},width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"BeginSiteAlias",title:"起始点位别名",type:"int",width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"EndSiteAlias",title:"目标点位别名",type:"int",width:150,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"TaskStatus",title:"任务状态",type:"int",bind:{ key:"MDS_TaskStatus",data:[]},width:110,readonly:true,showOverflowTooltip:true,align:"left"},
                       {field:"BeginTime",title:"开始时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"EndTime",title:"结束时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
